package com.zeedev.flyingsaucer.beers.activities.tabchooser.impl;

import android.app.Activity;
import android.content.Intent;
import android.widget.TabHost;
import com.zeedev.flyingsaucer.beers.activities.beerlists.BeerList;
import com.zeedev.flyingsaucer.beers.activities.beerlists.BeerTree;
import com.zeedev.flyingsaucer.beers.activities.tabchooser.interfaces.TabModel;
import mobi.zeedev.flyingsaucer.common.DataModule.BeerConstants;
import mobi.zeedev.flyingsaucer.common.DataModule.FlyingSaucerConv.Beers;
import mobi.zeedev.flyingsaucer.common.DataModule.FlyingSaucerConv.Members.MemberBeer;

public class MemberTabModel implements TabModel {

    @Override
    public void setTabLayout(TabHost tabHost, Activity thisIn) {

//        Serializable modelIn = StoreBeerListModel.class;

        tabHost.addTab(tabHost.newTabSpec("untastedTab")
                .setIndicator("Untasted")
                .setContent(new Intent(thisIn, BeerList.class)
//                        .putExtra(BeerConstants.INTENT_BEER_DB, modelIn)
                        .putExtra(BeerConstants.IS_TASTED_LIST, false)
                        .putExtra(BeerConstants.INTENT_TAB_MODEL, "MemberTabModel")
                ));

        tabHost.addTab(tabHost.newTabSpec("tastedTab")
                .setIndicator("Tasted")
                .setContent(new Intent(thisIn, BeerList.class)
//                        .putExtra(BeerConstants.INTENT_BEER_DB, modelIn)
//                .putExtra(BeerConstants.INTENT_FLAGTREE_MODE, BeerConstants.IS_TASTED_LIST)
                        .putExtra(BeerConstants.IS_TASTED_LIST, true)
                        .putExtra(BeerConstants.INTENT_TAB_MODEL, "MemberTabModel")
                ));


        tabHost.addTab(tabHost.newTabSpec("tastedTreeTab")
                .setIndicator("Tasted: Dates")
                .setContent(new Intent(thisIn, BeerTree.class)
//                        .putExtra(BeerConstants.INTENT_BEER_DB, modelIn)
                        .putExtra(BeerConstants.INTENT_BEERTREE_MODE, MemberBeer.SIMPLE_TASTED_DATE)
                        .putExtra(BeerConstants.INTENT_TAB_MODEL, "MemberTabModel")
                ));


        tabHost.addTab(tabHost.newTabSpec("stylesTab")
                .setIndicator("Tasted: Styles")
                .setContent(new Intent(thisIn, BeerTree.class)
//                        .putExtra(BeerConstants.INTENT_BEER_DB, modelIn)
                        .putExtra(BeerConstants.INTENT_BEERTREE_MODE, Beers.STYLE_NAME)
                        .putExtra(BeerConstants.INTENT_TAB_MODEL, "MemberTabModel")
                ));

//		tabHost.addTab(tabHost.newTabSpec("brewersTab")
//                .setIndicator("Tasted: Brewers")
//                .setContent(new Intent(thisIn, BeerTree.class)
//                .putExtra(BeerConstants.INTENT_BEER_DB, modelIn)
//                .putExtra(BeerConstants.INTENT_BEERTREE_MODE, Beers.BREWER_NAME)
//                ));	
//				
//
//		
//		tabHost.addTab(tabHost.newTabSpec("newBeersTab")
//                .setIndicator("New Beers")
//                .setContent(new Intent(thisIn, BeerTree.class)
//                .putExtra(BeerConstants.INTENT_BEER_DB, modelIn)
//                .putExtra(BeerConstants.INTENT_BEERTREE_MODE, MemberBeer.SIMPLE_CREATION_DATE)
//                ));	


    }

}
